package com.github.kotvertolet.youtubejextractor.models.newModels;

import com.google.gson.annotations.SerializedName;
import ohos.utils.Parcel;
import ohos.utils.Sequenceable;

import java.io.Serializable;

public class PlayerStoryboardSpecRenderer implements Sequenceable, Serializable {

    @SerializedName("spec")
    private String spec;

    public static final Sequenceable.Producer<PlayerStoryboardSpecRenderer> CREATOR = new Producer<PlayerStoryboardSpecRenderer>() {
        @Override
        public PlayerStoryboardSpecRenderer createFromParcel(Parcel parcel) {
            // Initialize an instance first, then do customized unmarshlling.
            PlayerStoryboardSpecRenderer playerStoryboardSpecRenderer = new PlayerStoryboardSpecRenderer();
            playerStoryboardSpecRenderer.unmarshalling(parcel);
            return playerStoryboardSpecRenderer;
        }
    };


    @Override
    public boolean marshalling(Parcel parcel) {
        parcel.writeString(this.spec);
        return true;
    }

    @Override
    public boolean unmarshalling(Parcel parcel) {
        this.spec=parcel.readString();
        return true;
    }

    @Override
    public String toString() {
        return "PlayerStoryboardSpecRenderer{" +
                "spec='" + spec + '\'' +
                '}';
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }
}
